import 'package:flutter/material.dart';

class SixthPage extends StatelessWidget {
  final arguments;

  const SixthPage({Key? key, this.arguments}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    print(arguments);
    return Scaffold(
      appBar: AppBar(
        title: Text("路由其他方法测试SixthPage"),
      ),
      body: Container(
        child:   RaisedButton(
          onPressed: () {
            // Navigator.popUntil(context, (route) => false);
            Navigator.popAndPushNamed(context, "/fourth");
          },
          child: Text("popUntil pop到指定界面"),
        ),
      ),
    );
  }
}
